package com.example.importDemo.service;

import com.example.importDemo.mapper.DemoMapper;
import com.example.importDemo.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DemoService {

    @Autowired
    private DemoMapper demoMapper;

    public List<Student> getStudent() {
        return demoMapper.getStudent();
    }

    public List<Student> getStudentById(int id) {
        return demoMapper.getStudentById(id);
    }
}
